import React from "react";
import { createRoot } from 'react-dom/client';
import i18n from "i18next";
import { useTranslation, initReactI18next } from "react-i18next";
import zh from './zh.js'
import en from './en.js'
import ko from './ko.js'

i18n
  .use(initReactI18next)
  .init({
    resources: {
      en: {
        translation: en
      },
      zh: {
        translation: zh
      },
      ko: {
        translation: ko
      }
    },
    lng: "zh",
    fallbackLng: "zh",
    interpolation: {
      escapeValue: false
    }
  });

export default i18n;